package com.yixun.qfbao.model;

import com.alibaba.fastjson.annotation.JSONField;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

@Data
@Table(name = "tm_customer")
public class Customer implements Serializable{
	private static final long serialVersionUID = 1L;

	@ApiModelProperty(value = "主键")
	@Id
	@GeneratedValue(strategy = GenerationType.IDENTITY)
	private Long id;
	@ApiModelProperty(value = "客户归属经纪人公司Id")
	private Long agentCompany;
	@ApiModelProperty(value = "客户归属经纪人Id")
	private Long agentId;
	@ApiModelProperty(value = "原始报备Id")
	private Long originalReport;
	@ApiModelProperty(value = "客户姓名")
	private String realName;
	@ApiModelProperty(value = "客户性别: 0:男,1:女")
	private String gender;
	@ApiModelProperty(value = "主号")
	private String mainMobile;
	@ApiModelProperty(value = "次号")
	private String minorMobile;
	@ApiModelProperty(value = "第三手机号")
	private String thirdMobile;
	@ApiModelProperty(value = "座机")
	private String telephone;
	@ApiModelProperty(value = "20以下,20-30岁,31-40岁,41-50岁,50岁以上")
	private String ageRange;
	@ApiModelProperty(value = "最小预算")
	private String budgetMin;
	@ApiModelProperty(value = "最大预算")
	private String budgetMax;
	@ApiModelProperty(value = "首付最小预算")
	private String downBudgetMin;
	@ApiModelProperty(value = "首付最大预算")
	private String downBudgetMax;
	@ApiModelProperty(value = "最小面积")
	private String areaMin;
	@ApiModelProperty(value = "最大面积")
	private String areaMax;
	@ApiModelProperty(value = "1室、2室、3室、4室、5室及以上")
	private String houseType;
	@ApiModelProperty(value = "低楼层、中楼层、高楼层")
	private String floor;
	@ApiModelProperty(value = "毛坯、简装、精装等")
	private String decoration;
	@ApiModelProperty(value = "物业类型: 住宅、别墅、酒店式公寓、写字楼、底商、车库、工业厂房、平房、商业办公类、其他")
	private String propertyType;
	@ApiModelProperty(value = "入住人数: 1人,2人,3人,4人,5人,6人及以上")
	private String peopleCount;
	@ApiModelProperty(value = "意向区域Id: 最多5个")
	private String intentionArea;
	@ApiModelProperty(value = "意向区域名稱，有上述intentionArea匹配")
	private String intentionAreaName;
	@ApiModelProperty(value = "意向楼盘Id: 最多5个")
	private String intentionPremises;
	@ApiModelProperty(value = "意向楼盘名称")
	private String intentionPremisesName;
	@ApiModelProperty(value = "置业目的: 刚需、改善、婚房、教育、投资")
	private String housePurpose;
	@ApiModelProperty(value = "付款方式: 全款、公积金贷款、商业贷款、组合贷款")
	private String payMethod;
	@ApiModelProperty(value = "创建时间")
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private Date createTime;
	@ApiModelProperty(value = "创建者id")
	private Long createUserId;
	@ApiModelProperty(value = "修改时间")
	@JSONField (format="yyyy-MM-dd HH:mm:ss")
	private Date updateTime;
	@ApiModelProperty(value = "修改者Id")
	private Long updateUserId;
	@ApiModelProperty(value = "0: 未删除，1: 删除")
	private String delFlag;
	@ApiModelProperty(value = "备注")
	private String remark;

}
